Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <button type="button" autofocus onclick="alert('Hello world!')">Click Me!</button> <p><strong>Note:</strong> The autofocus attribute of the button tag is not supported in IE 9 and earlier versions.</p> </body> <!-- Mirrored from www.w3schools.com/tags/tryit.asp?filename=tryhtml5_button_autofocus by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:23:12 GMT --> </html>
Result:
Try it Yourself - © w3schools.com